import React, { Component } from 'react'
// 拿到context
import { context } from './xxx'
export default class Son extends Component {
  render() {
    return (
      <context.Consumer>{(obj) => <div>Son,{obj.money}</div>}</context.Consumer>
    )
  }
}
